GCC = g++
CPPFLAGS = -g -finline-functions -Wall -Winline -pipe -DOS_LINUX
HEAD_INFO = -DPROJECT_NAME="\"FASTSEARCH\"" -DDESCRIPTION="\"FastSearch indexer\""
COMMON_PATH=../../../common
	  
INCLUDES = -I./ -I../output/include \
		   -I$(COMMON_PATH)/commonlib/output/include \
	       -I$(COMMON_PATH)/termindex \
	       -I$(COMMON_PATH)/sign/ 

LIBS     = -L./ -L../output/lib -lindex_reader\
		   -L$(COMMON_PATH)/commonlib/output/lib -lcommonlib \
	       -L$(COMMON_PATH)/sign/ -lsign \
	       -lpthread

all :test_reader

test_reader : test_reader.o
	$(GCC) -o $@ $^ $(INCLUDES) $(HEAD_INFO) $(LIBS)

%.o : %.cpp
	$(GCC) $(CPPFLAGS) $(HEAD_INFO) -c $< -o $@ $(INCLUDES)

clean :
	rm -f *.o
	rm -f test_reader

